<?php
session_start();
$_SESSION['NIP'] = $nip;
$_SESSION['ID_ROLE'] = $id_role;
class kerja_model{
	private $db;
	function __construct(){
		require_once($_SERVER['DOCUMENT_ROOT'].'/mpd/model/cruds.php');

		
		$this->db = new CRUDS();
	}
	
	function get_kerja_data($nip){
		$this->db->select('*');
		$this->db->from('biodata');
		$this->db->where('BIO_NIP = '.$nip);
		
		$query = $this->db->get();
		return $query;
	}
}

?>